package com.recipe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recipe.entity.Dish;
import com.recipe.entity.User;
import com.recipe.entity.vo.RankVo;

import java.util.List;

/**
 * (Dish)表服务接口
 *
 * @author makejava
 * @since 2024-06-17 15:23:24
 */
public interface DishService extends IService<Dish> {

    List<Dish> getAll();

    List<Dish> getBySource(String dishSource);

    Dish getDishById(Long id);


    Dish getDetailDish(Long id);

    User getauthor(Long userid);

    void add(Dish dish);

    List<RankVo> getContributeList();

    List<Dish> getPersonDish(String username);
}
